package com.android.bottomtab;

import android.app.ActivityGroup;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class bottomtab extends ActivityGroup  {
	public static TabHost tab_host;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 

        tab_host = (TabHost) findViewById(R.id.edit_item_tab_host);
        tab_host.setup(this.getLocalActivityManager());

        TabSpec ts1 = tab_host.newTabSpec("TAB_WEATHER"); 
        ts1.setIndicator("Weather"); 
        ts1.setContent(new Intent(this,Activity1.class));
        
        tab_host.addTab(ts1);

        TabSpec ts2 = tab_host.newTabSpec("TAB_MAIL"); 
        ts2.setIndicator("Mail"); 
        ts2.setContent(new Intent(this,Activity1.class)); 
        tab_host.addTab(ts2);

        tab_host.setCurrentTab(0);
    }
}